# -*- coding:utf-8 -*-
import pyautogui

offset_one_x = 500
offset_one_y = 900

offset_two_x = 1000
offset_two_y = 900

# pyautogui.moveTo(0, 0, duration=5)    # 移动到（0， 0）点会报错

pyautogui.moveTo(1, 500, duration=5)

pyautogui.moveTo(offset_one_x, offset_one_y, duration=5)
# 按住鼠标左键不动
# pyautogui.mouseDown()

pyautogui.moveTo(offset_two_x, offset_two_y, duration=5)

# 松开鼠标左键
# pyautogui.moveUp()
